import request from '@/utils/request'


// 公共接口
export const getAppInfo = data => request.get('/index/getAppInfo', data)
export const wxLogin = data => request.get('/user/wxLogin', data)
export const h5Login = data => request.get('/user/h5Login', data)
export const getEncodeCode = data => request.get('/user/getEncodeCode', data)
export const getMyUserInfo = data => request.get('/user/getDetail', data)
export const getRechargeList = data => request.get('/index/getRechargePlanList', data)

// 首页
export const getRecommendTvList = data => request.get('/index/getRecommendTvList', data)
export const getIndexSwiper = data => request.get('/index/getSwiperList', data)
export const getCategoryList = data => request.get('/index/getCategories', data)
export const getTvList = data => request.get('/index/getTvList', data)

// 用户行为相关
export const getLikeList = data => request.get('/behavior/getLikeTvList', data)
export const getFollowList = data => request.get('/behavior/getFollowTvList', data)
export const getHistoryList = data => request.get('/behavior/getWatchHistoryList', data)
export const clearAllHistory = data => request.get('/behavior/clearMyWatchHistory', data)
export const batchDeleteFollow = data => request.post('/behavior/batchDeleteMyFollowTv', data)
export const checkLike = data => request.get('/behavior/hasLiked', data)
export const clickLike = data => request.get('/behavior/addLike', data)
export const removeLike = data => request.get('/behavior/removeLike', data)
export const checkFollow = data => request.get('/behavior/hasFollowed', data)
export const followTv = data => request.get('/behavior/addFollowTv', data)
export const cancelFollowTv = data => request.get('/behavior/removeFollow', data)
export const recordHistory = data => request.get('/behavior/addWatchHistory', data)
export const getShareTvUrl = data => request.get('/applink/wechatInvite', data)

// 剧相关
export const getTvInfo = data => request.get('/tv/getTvDetail', data)
export const getAllEpisode = data => request.get('/tv/getAllSeries', data)
export const payEpisodeByBean = data => request.get('/tv/paySeries', data)
export const unlockTv = data => request.get('/tv/unlockTv', data)

// 用户中心
export const getUCenterIcons = data => request.get('/index/getUcenterIcon', data)
export const rechargeRecordList = data => request.get('/behavior/getUserRechargeRecordList', data)
export const getJinDouDetailList = data => request.get('/behavior/getBeanDetailList', data)
export const updateUserPlus = data => request.get('/user/updateUserPlus', data)

// 邀请
export const bindWeChatUserPhone = data => request.get('/invite/bindWeChatUserPhone', data)
export const bindMoreFunPhone = data => request.get('/channel/bindMoreFunPhone', data)
export const sendMessageCode = data => request.get('/channel/sendMessageCode', data)
export const bindUserPhone = data => request.get('/invite/bindUserPhone', data)
export const invitePanel = data => request.get('/invite/invitePanel', data)
export const commissionPanel = data => request.get('/invite/commissionPanel', data)
export const withdrawList = data => request.get('/invite/withdrawList', data)
export const withdraw = data => request.get('/invite/withdraw', data)
export const commissionList = data => request.get('/invite/commissionList', data)
export const getShareUrl = data => request.get('/my/getShareUrl', data)

// 兑换卡密
export const exchangeCdkey = data => request.get('/my/exchangeCdkey', data)
export const getCdkeyExchangeHistory = data => request.get('/my/exchangeCdkeyHistory', data)

// 广告
export const adTimesLimit = data => request.get('/my/adTimesLimit', data)
export const adTodayList = data => request.get('/my/adTodayList', data)
export const adJiangLi = data => request.get('/my/adJiangLi', data)

//签到
export const doSign = data => request.get('/my/doSign', data)
export const signInfo = data => request.get('/my/signInfo', data)
export const completeTask = data => request.get('/my/completeTask', data)

// 支付
export const createOrder = data => request.get('/Recharge/makeRecharge', data)
export const virtualPaySign = data => request.get('/Recharge/virtualPaySign', data)
export const virtualPayNotifyx = data => request.get('/Recharge/virtualPayNotifyx', data)


// 旧接口

export const distoryAccount = data => request.get('/client/user/kh/distoryaccount', data)

export const paySeries = data => request.get('/client/pay/kh/paySeries', data)

export const wxpayH5 = data => request.get('/client/pay/kh/wxpay_h5', data)
export const alipayH5 = data => request.get('/client/pay/kh/alipay_h5', data)
export const tvCnxh = data => request.get('/client/pages/pub/tv_cnxh', data)

export const adRewardedUnlockEpisode = data => request.get('/client/user/kh/uniad/ad-rewarded-unlock-episodes', data)
export const addFollow = data => request.get('/client/follow_tv/pub/add', data)
export const agentApply = data => request.get('/client/pages/kh/agent_apply', data)
export const getAgentApply = data => request.get('/client/pages/kh/getAgentApply', data)

export const myInviteUser = data => request.get('/client/user/kh/my_invite_user', data)
export const getMoreVideo = data => request.get('/client/video/pub/getmore', data)
export const getTvRank = data => request.get('/client/pages/pub/tv_rank', data)
export const signin = data => request.get('/client/user/kh/claim_rewards.qdinfo', data)
export const reward = data => request.get('/client/user/kh/claim_rewards.lxqd', data)
export const getAdrewardList = data => request.get('/client/user/kh/wxads/get_adreward_list', data)
export const wadsReward = data => request.get('/client/user/kh/wxads/wxads_reward', data)
export const taskCenter = data => request.get('/client/user/kh/taskCenter', data)
export const subscribe = data => request.get('/client/user/kh/dingyue', data)

export const checkVersion = data => request.post('/api/checkVersion', data,false)




